<template>
  <header>
    <img src="@/assets/images/logo.png" alt="">
    <div class="search" @click="goSearch">
      <i class="iconfont icon-Magnifier"></i>
      <span>搜你喜欢的...</span>
    </div>
    <div class="kefu">
      <i class="iconfont icon-kefu"></i>
    </div>
  </header>
</template>

<script>
  export default {
    methods:{
      goSearch(){
        this.$router.push('/search')
      }
    }
  }
</script>

<style lang="scss" scoped>
  header{
    display: flex;
    justify-content:space-around;
    align-items:center;
    width:100%;
    height:1.17rem;
    background-color:#b0352f;
    img{
      width:1.86rem;
      height: 0.8rem;
    }
    .search{
      width:6.56rem;
      height:0.8rem;
      background-color: #fff;
      border-radius:12px;
      display: flex;
      align-items:center;
      i{
        padding:0 0.16rem;
        color:#ccc;
      }
      span{
        font-size:0.37rem;
        color:#ccc;
      }
    }
    .kefu{
      i{
        font-size:0.66rem;
        color:#fff;
      }
    }
  }
</style>